package com.xbsj.Controller;


import com.xbsj.Client.ClientA;
import com.xbsj.domain.ResultB;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/connectA")
public class ServicesB {
    private final ClientA clientA;

    public ServicesB(ClientA clientA) {
        this.clientA = clientA;
    }

    @GetMapping("/getA")
    public ResultB getA(){
        return clientA.get();
    }
}
